struct ListNode* reverseList(struct ListNode* head){
    struct ListNode *tmp,*slow,*fast;
    
    struct Listnode *newnode=NULL;
    fast=head;
    while(fast)
    {
        tmp=fast->next;
        fast->next=newnode;
        newnode=fast;
        fast=tmp;
    }
    return newnode;
}